package cn.neu.leon.util;


import com.sun.jna.Native;

public class NlpirInit {
	/* nlpir分词工具的初始化 */
	public CLibrary instance = (CLibrary) Native
			.loadLibrary("./library/NLPIR",
					CLibrary.class);
	public int init_flag = instance.NLPIR_Init("", 1, "0");
	private String resultString = null;
    public void initTest()
    {
    	if (0 == init_flag) {
    		resultString = instance.NLPIR_GetLastErrorMsg();
    		System.err.println("初始化失败！\n" + resultString);
    		return;
    	}
    }
}

